package com.gxy.learn.design.model.behaviour.strategy;

/**
 * @description: 策略模式测试
 * @author: gaoxueyong
 * @Date: 2022/11/8 13:56
 */
public class Client {
    public static void main(String[] args) {

//        春节来了
        SaleMan saleMan = new SaleMan(new StrategyA());
        saleMan.saleManShow();

//        中秋节来了
        saleMan = new SaleMan(new StrategyB());
        saleMan.saleManShow();

//        圣诞节来了
        saleMan = new SaleMan(new StrategyC());
        saleMan.saleManShow();

    }
}
